$(function(){
	$.post("../bm/home/init",function(data){
		$("#uname").text(data.nickname);
		$("#avatar").attr("src","../"+data.avatar)
	})
	$(".navigation button").click(function(){
		$(".navigation button").removeClass("btnactive");
		$(".navigation button").addClass("btn");
		$(this).addClass("btnactive");
		this.blur();
	});
	
});
function logout(){
		$.post("../user/logout",function(){
			window.location.href='../bm';
		});
}
function ifmanimate(){
	$('#ifm').hide();
	$('#ifm').fadeIn(500);
}
